package com.rtx.edi.model.application.dto;

import com.rtx.api.annotation.FieldValidate;
import com.rtx.api.enums.FieldValidateType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 应用字段信息表 
 * </p>
 *
 * @author wq
 * @since 2023-03-16
 */
@ApiModel(value = "PlApplicationField对象", description = "应用字段信息表 ")
public class PlApplicationFieldDto {

    @ApiModelProperty("主键id")
    @FieldValidate(type = FieldValidateType.UPDATE_DELETE)
    private Long id;

    @ApiModelProperty(value = "公司id",position = 1)
    @FieldValidate
    private Long companyId;

    @ApiModelProperty(value = "应用id",position = 2)
    @FieldValidate
    private Long applicationId;

    @ApiModelProperty(value = "应用编号",position = 3)
    @FieldValidate
    private String applicationNo;

    @ApiModelProperty(value = "应用名称",position = 4)
    @FieldValidate
    private String applicationName;

    @ApiModelProperty(value = "字段code",position = 5)
    @FieldValidate
    private String fieldCode;

    @ApiModelProperty(value = "字段名称",position = 6)
    @FieldValidate
    private String fieldName;

    @ApiModelProperty(value = "字段数据类型(int/varchar32/datetime/bigint)",position = 7)
    @FieldValidate
    private Integer fieldDataType;

    @ApiModelProperty(value = "字段类型(普通字段/数据字典)",position = 8)
    @FieldValidate
    private Integer fieldType;

    @ApiModelProperty(value = "字段长度",position = 9)
   // @FieldValidate
    private Integer fieldLength;

    @ApiModelProperty(value = "字段描述",position = 10)
    private String fieldDesc;

    @ApiModelProperty(value = "数据版本",position = 11)
    private Integer version;

    @ApiModelProperty(value = "新增用户",position = 12)
    @FieldValidate
    private String insUser;

    @ApiModelProperty(value = "修改用户",position = 13)
    @FieldValidate(type = FieldValidateType.UPDATE)
    private String updUser;

    @ApiModelProperty(value = "页面编号",position = 14)
    private Integer pageNum = 1;

    @ApiModelProperty(value = "页面大小",position = 15)
    private Integer pageSize = 20;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getApplicationId() {
        return applicationId;
    }

    public void setApplicationId(Long applicationId) {
        this.applicationId = applicationId;
    }

    public String getApplicationNo() {
        return applicationNo;
    }

    public void setApplicationNo(String applicationNo) {
        this.applicationNo = applicationNo;
    }

    public String getApplicationName() {
        return applicationName;
    }

    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }

    public String getFieldCode() {
        return fieldCode;
    }

    public void setFieldCode(String fieldCode) {
        this.fieldCode = fieldCode;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public Integer getFieldDataType() {
        return fieldDataType;
    }

    public void setFieldDataType(Integer fieldDataType) {
        this.fieldDataType = fieldDataType;
    }

    public Integer getFieldType() {
        return fieldType;
    }

    public void setFieldType(Integer fieldType) {
        this.fieldType = fieldType;
    }

    public Integer getFieldLength() {
        return fieldLength;
    }

    public void setFieldLength(Integer fieldLength) {
        this.fieldLength = fieldLength;
    }

    public String getFieldDesc() {
        return fieldDesc;
    }

    public void setFieldDesc(String fieldDesc) {
        this.fieldDesc = fieldDesc;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getInsUser() {
        return insUser;
    }

    public void setInsUser(String insUser) {
        this.insUser = insUser;
    }

    public String getUpdUser() {
        return updUser;
    }

    public void setUpdUser(String updUser) {
        this.updUser = updUser;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
